package com.zr.inquiry.total.controller;

import com.zr.inquiry.total.service.QuotationService;
import com.zr.utils.result.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName QuotationController
 * @Description TODO 文件上传（导入）
 * @Author 马家奎
 * @Date 2019/11/19 11:44
 */
@CrossOrigin
@RestController
@RequestMapping("quotation")
public class QuotationController {
    @Autowired
    private QuotationService quotationService;

    //@PostMapping("InquiryIntroduction")
    public ResultUtil fileQuotation( MultipartFile file){
        return quotationService.importFile(file);
    }
}
